import ajax from './ajax'

// 创建角色
export const addRole = (data) => ajax('/manage/role/add', data, 'POST')
// 获取角色列表
export const Roles = () => ajax('/manage/role/list')
// 更新角色(设置角色权限)
export const updateRole = (role) => ajax('/manage/role/update', role, 'POST')